//
//  ArqLcd.h
//
//  Created by xiao wen on 15/1/20.
//  Copyright (c) 2015年 witsi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DataTransmitImp.h"
#import "MposDialogContent.h"

@interface ArqLcd : NSObject{
@private
    void *pCppObj;
}

-(id)initWith:(DataTransmitImp*)dataTransmit;

/*
 * parameter:
 * return:
 * = 0: success.
 * -1: io error happened.
 * -2: unknown error!
 */
-(int)lcdClear;

/*
 * parameter: mode 0反向显示模式   1正常显示模式
 * return:
 * = 0: success.
 * -1: io error happened.
 * -2: unknown error!
 */
-(int)lcdReverse:(int)mode;


/*
 * parameter: mode 0关背光   1开背光
 * return:
 * = 0: success.
 * -1: io error happened.
 * -2: unknown error!
 */
-(int)lcdBacklight:(int)mode;

/*
 * parameter: gary 液晶灰度(0~100)
 * return:
 * = 0: success.
 * -1: io error happened.
 * -2: unknown error!
 */
-(int)lcdGrayCtrl:(int)gary;

/*
 * parameter: x  y  h
 * return:
 * = 0: success.
 * -1: io error happened.
 * -2: unknown error!
 */
-(int)lcdVline:(int)x withY:(int)y withH:(int)h;

/*
 * parameter: x  y  w
 * return:
 * = 0: success.
 * -1: io error happened.
 * -2: unknown error!
 */
-(int)lcdHline:(int)x withY:(int)y withW:(int)w;

/*
 * parameter:
 * return:
 * = 0: success.
 * -1: io error happened.
 * -2: unknown error!
 */
-(int)lcdString:(int)x withY:(int)y withString:(NSString*)data;

/*
 * parameter:
 * return:
 * = 0: success.
 * -1: io error happened.
 * -2: unknown error!
 */
-(int)lcdImg:(int)x withY:(int)y withW:(int)w withH:(int)h withImageData:(NSData*)imgData;

-(int)lcdShowDialog:(MposDialogContent*)context;

-(int)lcdShowDesk;

@end
